package com.renjiyue.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("h1")
public class hellocontroller1{
    @RequestMapping("h2")
    public String sayHello(Model model){
        model.addAttribute("msg","hello,Spring");
        return "hello";
    }
}
